package com.desire.fallBack;

import com.desire.bean.User;
import com.desire.remote.UserRemoteClient;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description:
 * @Author: littleDesire
 * @Date: 2022-06-10 17:16
 * @Version: 1.0
 */
@Component
public class UserFallback implements UserRemoteClient {
    @Override
    public Map<String, Object> queryUser() {
        Map<String, Object> map = new HashMap<>();
        map.put("code", 0);
        map.put("msg", "降级处理");
        return map;
    }

    @Override
    public Map<String, Object> queryPath(String id) {
        return null;
    }

    @Override
    public Map<String, Object> queryParams(String username, String password) {
        return null;
    }

    @Override
    public void queryGetMap(Map<String, Object> map) {

    }

    @Override
    public void queryPostMap(Map<String, Object> map) {

    }

    @Override
    public void queryPostUser(User user) {

    }

    @Override
    public void queryStringQueryMap(Map<String, Object> map) {

    }

    @Override
    public void queryStringQueryMapUser(User user) {

    }
}
